Using Dial Plans for IP-to-Tel or Tel-to-IP Call Routing

For deployments requiring hundreds of routing rules (which may exceed the maximum number of rules that can be configured in the routing tables), you can employ Dial Plan tags to represent the many different calling (source) and called (destination) prefix numbers as matching input characteristics in your IP-to-Tel and Tel-to-IP routing rules. Tags are typically implemented when you have users of many different called and/or calling numbers that need to be routed to the same destination. In such a scenario, instead of configuring many routing rules to match all the required prefix numbers, you need only to configure a single routing rule using the tag to represent all the possible prefix numbers.

An example scenario where employing tags could be useful is in deployments where the device needs to service calls in a geographical area that consists of many local area codes, where the area codes are serviced by different SIP Trunks (for Tel-to-IP) and Trunk Groups (for IP-to-Tel). Another example includes routing local calls and International calls using different SIP Trunks. In such a scenario, instead of configuring hundreds of routing rules to represent each local area code and the International dialing code, you can simply configure two routing rules where one is assigned a unique tag representing the local area codes and the other is assigned a tag representing International calls.

Source and destination tags can be used in the same routing rule.
The same tag can be used for source and destination tags in the same routing rule.

The procedure below describes how to configure tag-based routing for Gateway calls based on the following example setup:

Tel-to-IP routing: Local calls whose destination tag is "NYPSP0" are routed to IP Group "SP-0" and calls whose destination tag is "NYPSP1" are routed to IP Group "SP-1".
IP-to-Tel routing: Local calls whose destination tag is "NYPSP0" are routed to Trunk Group 1 and calls whose destination tag is "NYPSP1" are routed to Trunk Group 2.
To configure tag-based routing for IP-to-Tel and Tel-to-IP calls:
1. Open the Dial Plan table (see Configuring Dial Plans), and then configure your Dial Plan rules, for example:

Dial Plan Name

Dial Plan Rule

Comment

 

Name

Prefix

Tag

 

TEL2IP

Local1

21[2-4]

NYPSP0

Denotes local area codes with prefixes 212, 213, and 214

Local2

332

NYPSP0

Denotes local area code with prefix 332

Local3

34[7,9]

NYPSP1

Denotes local area codes with prefixes 347 and 349

Local4

9[17,29]

NYPSP1

Denotes local area codes with prefixes 917 and 929

IP2TEL

Local1

21[2-4]

NYPSP0

See above

Local2

332

NYPSP0

See above

Local3

34[7,9

NYPSP1

See above

Local4

9[17,29]

NYPSP1

See above

2. Open the Routing Settings page (Setup menu > Signaling & Media tab > Gateway folder > Routing > Routing Settings), and then specify the Dial Plan names that you want to use for each routing table:
In the 'IP-to-Tel Dial Plan Name' parameter, enter the name of the Dial Plan (e.g., "IP2TEL") that you want to use for IP-to-Tel routing rules.
In the 'Tel-to-IP Dial Plan Name' parameter, enter the name of the Dial Plan (e.g., "TEL2IP") that you want to use for Tel-to-IP routing rules.

Dial Plan names are case-sensitive.

3. Open the Tel-to-IP Routing table (see Configuring Tel-to-IP Routing Rules), and then configure a routing rule with the required destination and whose matching characteristics include the tag(s) that you configured in your Dial Plan for Tel-to-IP routing. The tags are assigned using the 'Source Tag' and 'Destination Tag' parameters. In our example, configure two routing rules:
Routing rule 1:
'Destination Tag': NYPSP0
'Destination IP Group': SP-0
Routing rule 2:
'Destination Tag': NYPSP1
'Destination IP Group': SP-1
4. Open the IP-to-Tel Routing table (see Configuring IP-to-Tel Routing Rules), and then configure a routing rule with the required destination and whose matching characteristics include the tag(s) that you configured in your Dial Plan for IP-to-Tel routing. The tags are assigned using the 'Source Tag' and 'Destination Tag' parameters. In our example, configure two routing rules:
Routing rule 1:
'Destination Tag': NYPSP0
'Destination Type': Trunk Group
'Trunk Group ID': 1
Routing rule 2:
'Destination Tag': NYPSP1
'Destination Type': Trunk Group
'Trunk Group ID': 2